// 地址
const mongoose = require("mongoose");
module.exports = mongoose.model("address", {
  place: {
    //地方
    type: String,
    required: true,
  },
  phone: {
    type: Number,
    required: true,
  },
  name: {
    type: String,
    required: true,
  },
  user: {
    //用户
    type: mongoose.SchemaTypes.ObjectId,
    ref: "wechat",
    required: true,
  },
});
